/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package views;

import models.LieuAVisiter;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.logging.Level;
import java.util.logging.Logger;
import utils.MyUtils;
import org.jdesktop.swingx.table.TableColumnExt;
import tableModels.TableLieuAVisiterModel;

/**
 *
 * @author Betty
 */
public class frmLieu extends javax.swing.JPanel {
    
    protected LieuAVisiter lieuAVisiter;

    /**
     * Creates new customizer frmLieu
     */
    public frmLieu() {
        initComponents();
        this.lieuAVisiter= new LieuAVisiter();
        this.lieuAVisiter.setIdentifiant(0);
    }
    
      public frmLieu(String id) {
        initComponents();
        this.lieuAVisiter=new LieuAVisiter();
        this.lieuAVisiter.setIdentifiant(Integer.parseInt(id));
        affLieuAVisiter(this.lieuAVisiter.getIdentifiant());
    }
    
     private void affLieuAVisiter(int id) {
        this.lieuAVisiter.find(id);
           
      
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the FormEditor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setLayout(new java.awt.BorderLayout());
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
